<template>
  <div>
    <el-row :gutter="5" v-for="(item,index) in datas" :key="index" style="margin-bottom:5px">
      <el-col :span="7">
        <el-input placeholder="Key" size="mini" v-model="item[0]"></el-input>
      </el-col>
      <el-col :span="12">
        <el-input placeholder="Value" size="mini" v-model="item[1]"></el-input>
      </el-col>
      <el-col :span="5">
        <el-button
          v-if="datas.length>1"
          type="danger"
          icon="el-icon-delete"
          size="mini"
          @click="datas.splice(index,1)"
        ></el-button>
      </el-col>
    </el-row>
    <el-button type="primary" size="mini" @click="datas.push(['',''])" icon="el-icon-plus"></el-button>
  </div>
</template>

<script>
export default {
  components: {},
  props: ['datas'],
  data() {
    return {}
  },
  computed: {},
  watch: {},
  methods: {},
  created() {},
}
</script>
<style scoped>
</style>